package com.zxtx;

import com.ruoyi.RuoYiApplication;
import com.ruoyi.project.system.domain.SysDictData;
import com.ruoyi.project.system.domain.SysUser;
import com.ruoyi.project.system.mapper.SysDictDataMapper;
import com.ruoyi.project.system.mapper.SysUserMapper;
import com.ruoyi.project.zxcrm.domain.CrmLead;
import com.ruoyi.project.zxcrm.mapper.CrmOrderMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest(classes= RuoYiApplication.class)
public class test {
    @Autowired
    private CrmOrderMapper crmOrderMapper;
    @Autowire
    private SysDictDataMapper sysDictDataMapper;
    @Autowired
    private SysUserMapper sysUserMapper;
    @Test
    public void  test(){
        List<CrmLead> crmLeads = crmOrderMapper.queryCrmLeadList();
        System.out.println(crmLeads);
    }

    @Test
    public void  test11(){
        List<SysDictData> crmSales = sysDictDataMapper.selectDictDataByType("crm_sales");
        System.out.println(crmSales);
    }
    @Test
    public void  test111(){
        List<SysUser> sysUsers = sysUserMapper.selectUserList(new SysUser());
        System.out.println(sysUsers);
    }
}
